cmake_minimum_required(VERSION 3.8)
project(target_prop_inherited)

add_executable(hello hello.cpp)

#define_property(TARGET PROPERTY target_prop BRIEF_DOCS "bd" FULL_DOCS "fd")
define_property(TARGET PROPERTY target_prop INHERITED BRIEF_DOCS "bd" FULL_DOCS "fd")
#set_property(TARGET hello PROPERTY target_prop "value1")
#set_property(DIRECTORY "${PROJECT_SOURCE_DIR}" PROPERTY target_prop "target_prop in dir")
set_property(GLOBAL PROPERTY target_prop "target_prop in global")

get_property(var1 TARGET hello PROPERTY target_prop)
message(STATUS "target_prop = ${var1}")
get_target_property(var2 hello target_prop)
message(STATUS "target_prop = ${var2}")
